package com.ysy.tz.core.event;

public class BizEvent {
    private String action;
    private Object data;

    public String getAction() {
        return this.action;
    }

    public Object getData() {
        return this.data;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BizEvent)) {
            return false;
        } else {
            BizEvent other = (BizEvent)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$action = this.getAction();
                Object other$action = other.getAction();
                if (this$action == null) {
                    if (other$action != null) {
                        return false;
                    }
                } else if (!this$action.equals(other$action)) {
                    return false;
                }

                Object this$data = this.getData();
                Object other$data = other.getData();
                if (this$data == null) {
                    if (other$data != null) {
                        return false;
                    }
                } else if (!this$data.equals(other$data)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BizEvent;
    }

    public int hashCode() {
        int result = 1;
        Object $action = this.getAction();
        result = result * 59 + ($action == null ? 43 : $action.hashCode());
        Object $data = this.getData();
        result = result * 59 + ($data == null ? 43 : $data.hashCode());
        return result;
    }

    public String toString() {
        return "BizEvent(action=" + this.getAction() + ", data=" + this.getData() + ")";
    }

    public BizEvent(String action, Object data) {
        this.action = action;
        this.data = data;
    }
}
